<?php

define('HOST', 'localhost');
define('USER', 'root');
define('PWD', '');
define('DBNAME', 'blog');


class SQL
{
	public function __construct() 
	{

		$pdo = new PDO('mysql:host='.HOST.';dbname='.DBNAME, USER, PWD);

	}
	
	public function query($req)
	{
		if(!empty($req))
		{
			$res = $pdo->query($req);
			return $res;
		}
		
	}
}

?>